<?php

class user_score{
public function index()
{
$email = strim($GLOBALS['request']['email']);
$pwd = strim($GLOBALS['request']['pwd']);
$root=array();
$user = user_check($email,$pwd);
$user_id  = intval($user['id']);
if($user_id<0)
{
$root['info']='用户名或密码错误';
output($root);
}
$root['user_score']=$GLOBALS['db']->getOne('select score from '.DB_PREFIX.'user where id = '.$user_id);
output($root);
}
}

?>